<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>
        <p:dialog id="TipoExpedienteEditDlg" widgetVar="TipoExpedienteEditDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{myBundle.EditTipoExpedienteTitle}" closeOnEscape="true">

            <h:form id="TipoExpedienteEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" columnClasses="column" rendered="#{tipoExpedienteController.selected != null}">


                        <h:outputLabel value="#{myBundle.EditTipoExpedienteLabel_id}" for="id" />
                        <h:outputText id="id" value="#{tipoExpedienteController.selected.id}" />

                        <p:outputLabel value="#{myBundle.EditTipoExpedienteLabel_codigo}" for="codigo" />
                        <p:inputText id="codigo" value="#{tipoExpedienteController.selected.codigo}" title="#{myBundle.EditTipoExpedienteTitle_codigo}" required="true" requiredMessage="#{myBundle.EditTipoExpedienteRequiredMessage_codigo}"/>

                        <p:outputLabel value="#{myBundle.EditTipoExpedienteLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{tipoExpedienteController.selected.nombre}" title="#{myBundle.EditTipoExpedienteTitle_nombre}" required="true" requiredMessage="#{myBundle.EditTipoExpedienteRequiredMessage_nombre}" size="40" maxlength="40"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{tipoExpedienteController.save}" value="#{myBundle.Save}" update="display,:TipoExpedienteListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,TipoExpedienteEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="TipoExpedienteEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
